<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="apple-touch-fullscreen" content="yes" />
	<meta name="format-detection" content="telephone=no,email=no" />
	<meta name="ML-Config" content="fullscreen=yes,preventMove=no" />
	<meta name="apple-mobile-web-app-status-bar-style" content="black" />
	<title>邀请好友分享</title>
	<meta name="keywords" content="" />
	<meta name="description" content="金果,邀请,好友" />
	<link type="text/css" rel="stylesheet" href="{$url_css}mobile/styles.css" />
	<script type="text/javascript" src="{$url_js}mobile/styleinterference.js"></script>
</head>

<body>
<div id="loading" class="loading up"><i></i></div>
<div class="wrap">
	<div class="friend box">
		{*<img class="qrcode" src='{$url_images}mobile/qrcode.png' alt="" />*}
		<img class="qrcode" src='{$url_images}mobile/qrcode.jpg' alt="" />
		<dl id="SHARE">
			<dt>&nbsp;</dt>
			<dd><img src="{$url_images}mobile/share_pengyouquan.png" alt=""/><p>微信朋友圈</p></dd>
			<dd><img src="{$url_images}mobile/share_weixin.png" alt=""/><p>微信好友</p></dd>
			<dd><img src="{$url_images}mobile/share_qqzone.png" alt=""/><p>QQ空间</p></dd>
			<dd><img src="{$url_images}mobile/share_qq.png" alt=""/><p>QQ好友</p></dd>
		</dl>
	</div>
</div>
<script type="text/javascript" src="{$url_js}mobile/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="{$url_js}mobile/default.js"></script>
<script type="text/javascript">
    df.ready(function(){
        df.fullsize(48);
        $('#SHARE dd').on('click',function(){
            switch($(this).index()){
                case 1:
	                    if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
                            //window.gold.Share(3,'{$share.title}','{$share.desc}','{$share.img}','{$share.url}', '');
                            window.webkit.messageHandlers.Share.postMessage({ type:3, title:'{$share.title}',desc:'{$share.desc}',imgUrl:'{$share.img}',url:'{$share.url}',callBackStr:''});
                        } else {
                            window.gold.js_Share(3,'{$share.title}','{$share.desc}','{$share.img}','{$share.url}', '');
                        }
                    break;
                case 2:
                    if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
                        //window.gold.Share(4,'{$share.title}','{$share.desc}','{$share.img}','{$share.url}', '');
                        window.webkit.messageHandlers.Share.postMessage({ type:4, title:'{$share.title}',desc:'{$share.desc}',imgUrl:'{$share.img}',url:'{$share.url}',callBackStr:''});
                    } else {
                        window.gold.js_Share(4,'{$share.title}','{$share.desc}','{$share.img}','{$share.url}', '');
                    }
                    break;
                case 3:
                    if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
                        //window.gold.Share(2,'{$share.title}','{$share.desc}','{$share.img}','{$share.url}', '');
                        window.webkit.messageHandlers.Share.postMessage({ type:2, title:'{$share.title}',desc:'{$share.desc}',imgUrl:'{$share.img}',url:'{$share.url}',callBackStr:''});
                    } else {
                        window.gold.js_Share(2,'{$share.title}','{$share.desc}','{$share.img}','{$share.url}', '');
                    }
                    break;
                case 4:
                    if (/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
                        //window.gold.Share(5,'{$share.title}','{$share.desc}','{$share.img}','{$share.url}', '');
                        window.webkit.messageHandlers.Share.postMessage({ type:5, title:'{$share.title}',desc:'{$share.desc}',imgUrl:'{$share.img}',url:'{$share.url}',callBackStr:''});
                    } else {
                        window.gold.js_Share(5,'{$share.title}','{$share.desc}','{$share.img}','{$share.url}', '');
                    }
                    break;
                default:alert('选择异常');
            }
        });
    });
</script>
</body>
</html>